package factory.abstractfactory;

public class OrderPizza {
    private AbsFactory factory;

    public void setFactory(AbsFactory factory) {
        this.factory = factory;
    }

    public void orderPizza(String type) {
        Pizza pizza = factory.createPizza(type);;
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();
        System.out.println("----------");
    }
}
